﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XToolKit.Mvc.Internal
{
    class AuthorizedUser : MvcUser
    {

        public AuthorizedUser(long userId, string displayName, string clientId, bool isAdmin, bool isAuthorized,string ipAddress)
        {
            _userId = userId;
            _clientId = clientId;
            _displayName = displayName;
            _isAuthorized = isAuthorized;
            _isAdmin = isAdmin;
            _ipAddress = ipAddress;
        }

        long _userId;
        public override long UserId
        {
            get { return _userId; }
        }

        string _clientId;
        public override string ClientId
        {
            get { return _clientId; }
        }
        string _displayName;
        public override string DisplayName
        {
            get { return _displayName; }
        }
        bool _isAdmin;
        public override bool IsAdmin
        {
            get { return _isAdmin; }
        }

        bool _isAuthorized;
        public override bool IsAuthorized
        {
            get { return _isAuthorized; }
        }

        string _ipAddress;
        public override string IpAddress
        {
            get { return _ipAddress; }
        }
    }
}
